package com.devinlee.designpatterns.strategy;

import com.devinlee.designpatterns.strategy.pay.Pay;

/**
 * 策略模式-订单
 */
public class Order {

    private Integer id;

    public Order(Integer id){
        this.id = id;
    }
    public void pay(Pay pay){
        System.out.println("订单"+ id +"进行了" + pay.debit());
    }
}
